home *** CD-ROM | disk | FTP | other *** search
/ T&A 2 the Maxx 3 / T and A 2 The Maxx Number 3.iso / viewers / unixview / xgiftar.z / xgiftar / options.h < prev    next >
Text File  |  1991-05-20  |  1KB  |  41 lines

  1. /* options.h:
  2.  *
  3.  * optionNumber() definitions
  4.  *
  5.  * jim frost 10.03.89
  6.  *
  7.  * Copyright 1989 Jim Frost.  See included file "copyright.h" for complete
  8.  * copyright information.
  9.  */
  10.  
  11. /* enum with the options in it.  If you add one to this you also have to
  12.  * add its information to Options[] in options.c before it becomes available.
  13.  */
  14.  
  15. typedef enum option_id {
  16.  
  17.   /* global options
  18.    */
  19.  
  20.   OPT_NOTOPT= 0, OPT_BADOPT, OPT_SHORTOPT, BORDER, DBUG, DEFAULT, DELAY,
  21.   DISPLAY, FIT, FORK, FULLSCREEN, GEOMETRY, HELP, IDENTIFY, INSTALL,
  22.   LIST, ONROOT, PATH, PIXMAP, PRIVATE, QUIET, SUPPORTED, VERBOSE,
  23.   VER_NUM, VIEW, VISUAL, WINDOWID,
  24.  
  25.   /* local options
  26.    */
  27.  
  28.   AT, BACKGROUND, BRIGHT, CENTER, CLIP, COLORS, DITHER, FOREGROUND,
  29.   GAMMA, GOTO, GRAY, HALFTONE, IDELAY, INVERT, MERGE, NAME, NEWOPTIONS,
  30.   NORMALIZE, ROTATE, SMOOTH, XZOOM, YZOOM, ZOOM
  31. } OptionId;
  32.  
  33. typedef struct option_array {
  34.   char     *name;        /* name of the option minus preceeding '-' */
  35.   OptionId  option_id;   /* OptionId of this option */
  36.   char     *args;        /* arguments this option uses or NULL if none */
  37.   char     *description; /* description of this option */
  38. } OptionArray;
  39.  
  40. OptionId optionNumber(); /* options.c */
  41.